<?php
/**
  * tframe
  *
  *
  * @copyright Copyright (c) 2012 - 2014, huxiaomin
  * @author huxiaomin    2012-6-28  
  * @since		Version 1.0
  *
  */
if (defined('TT_DIR')){
    require_once TT_DIR.'script.config.php';
}
else {
	$path = dirname(__FILE__);
    require_once $path.'/../script.config.php';
}
set_time_limit(0);

$dtask = new TMod('DTask');

while (file_exists(TT_DIR.'scripts/dtask.script.run')){
   $dtask->start();     
   sleep(1);
}